//
//  PS_HotTitleTableViewCell.m
//  FinanceSupermarket
//
//  Created by 丹丹 on 2018/12/17.
//  Copyright © 2018年 xuezi. All rights reserved.
//

#import "PS_HotTitleTableViewCell.h"

@implementation PS_HotTitleTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setDataForCell:(PS_ReMenHuiDaModel*)model{
    
    _titleLabel.text = model.title;
    [_messageBtn setTitle:[NSString stringWithFormat:@" %@",model.comment_quantity] forState:UIControlStateNormal];
    if (model.is_zan == 1) {
        
        [_zanBtn setImage:[UIImage imageNamed:@"dianzan1"] forState:UIControlStateNormal];
    }else{
        [_zanBtn setImage:[UIImage imageNamed:@"yidianzan"] forState:UIControlStateNormal];
    }
    [_zanBtn setTitle:[NSString stringWithFormat:@" %ld",(long)model.praise_points] forState:UIControlStateNormal];
    _stateLabel.text = model.create_time;
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
